package com.apes.auto.maintain.model;

import com.apes.framework.jpa.ApesBean;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * @ClassName alter_final
 * @Description 有变更的小保养机油用量数据
 * @Author pengyb
 * @Date 2019/8/8 16:05
 * @Version 1.0
 **/
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = AlterFinal.CONST_TABLE_NAME)
public class AlterFinal implements ApesBean {
    public static final String CONST_TABLE_NAME = "alter_final";
    @Id
    @Column(name = "CXID", length = 32)
    @Comment("车型ID")
    private String CXID;

    @Column(name = "XBYJYYL", columnDefinition = "number(6,2) default 0")
    @Comment("小保养机油用量(升)")
    private int XBYJYYL;

}
